@mixin bannerTP1 {
  font-weight: 600;
  font-style: normal;
  font-size: 2.4rem;
  letter-spacing: 2px;
  color: #2d2a6e;
  position: absolute;
  top: 34%;
  left: 4%;
}
@mixin bannerTP2 {
  font-weight: 300;
  font-style: normal;
  font-size: 1.3rem;
  color: #4d5574;
  color: #2d2a6e;
  position: absolute;
  top: 54%;
  left: 4%;
}
@mixin oBtn {
  position: absolute;
  top: 76%;
  left: 8%;
  .btn {
    --color1: #96ae00;
    --color2: #236b19;
    perspective: 1000px;
    padding: 1em 1em;
    background: linear-gradient(var(--color1), var(--color2));
    border: none;
    outline: none;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
    text-shadow: 0 10px 10px #000;
    cursor: pointer;
    transform: rotateX(70deg) rotateZ(30deg);
    transform-style: preserve-3d;
    transition: transform 0.5s;
  }

  .btn::before {
    content: "";
    width: 100%;
    height: 15px;
    background-color: var(--color2);
    position: absolute;
    bottom: 0;
    right: 0;
    transform: rotateX(90deg);
    transform-origin: bottom;
  }

  .btn::after {
    content: "";
    width: 15px;
    height: 100%;
    background-color: var(--color1);
    position: absolute;
    top: 0;
    right: 0;
    transform: rotateY(-90deg);
    transform-origin: right;
  }

  .btn:hover {
    transform: rotateX(30deg) rotateZ(0);
  }
}
.banner-box {
  .el-carousel {
    height: 30rem;
  }
  .el-carousel__item.item1 {
    background-image: url(https://demo2022.axureshop.com/2188352/images/%E9%A6%96%E9%A1%B5/u0_state2.png);
    background-size: cover;
    position: relative;
    .banner1-text1 {
      @include bannerTP1;
    }
    .banner1-text2 {
      @include bannerTP2;
    }
    .btn1 {
      @include oBtn;
    }
  }

  .el-carousel__item.item2 {
    background-image: url(https://demo2022.axureshop.com/2188352/images/%E9%A6%96%E9%A1%B5/banner2_u8.png);
    background-size: cover;
    .banner2-text1 {
      @include bannerTP1;
    }
    .banner2-text2 {
      @include bannerTP2;
    }
    .btn2 {
      @include oBtn;
    }
  }
  .el-carousel__item.item3 {
    background-image: url(https://demo2022.axureshop.com/2188352/images/%E9%A6%96%E9%A1%B5/banner1_u1.png);
    background-size: cover;
    .banner3-text1 {
      @include bannerTP1;
    }
    .banner3-text2 {
      @include bannerTP2;
    }
    .btn3 {
      @include oBtn;
    }
  }
}
